package iot.wlink.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import iot.wlink.bean.entity.DeviceShare;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * @author : willian fu
 * @date : 2021/8/23
 */
public interface DeviceShareMapper extends BaseMapper<DeviceShare> {

    @Select("select user_id, uid from device_share where uid = #{uid}")
    Map<Long, Boolean> getUserDeviceScoped(@Param("uid") String uid);
}
